package com.demo.controllers;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.demo.entity.BillOrder;
import com.demo.request.GetBillOrderReq;
import com.demo.response.BaseResponse;
import com.demo.service.BillOrderService;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Description:
 * @author: fanfan
 * @date: 2018/7/4 10:30
 */
@RestController
@RequestMapping("/billOrder")
public class BillOrderController {
    @Autowired
    private BillOrderService billOrderService;

    @RequestMapping("/getBillOrder")
    public Page getBillOrder(GetBillOrderReq req){
        Page count = billOrderService.getCount(req);
        return count;
    }

    @RequestMapping("/test")
    public Page test(GetBillOrderReq req){
        return billOrderService.test(req);
    }
}
